//
//  IntegralViewCell.m
//  BallRankingProject
//
//  Created by lanou3g on 15/5/31.
//  Copyright (c) 2015年 luojian. All rights reserved.
//

#import "IntegralViewCell.h"

@implementation IntegralViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setinformage];
        
    }

    return self;
}
- (void)setinformage
{
   // self.backgroundColor=[UIColor colorWithRed:0.374 green:0.442 blue:1.000 alpha:1.000];
    CGRect fram=[UIScreen mainScreen].bounds;
    self.frame=CGRectMake(0, 0, fram.size.width, 150);
    self.contentView.frame=self.frame;
    UILabel *upLable=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.frame), CGRectGetHeight(self.frame)/4)];
    
    self.begin_timeLable=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(upLable.frame)/2, CGRectGetHeight(upLable.frame))];
    self.stageLable=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(upLable.frame)/2, 0, CGRectGetWidth(upLable.frame)/2, CGRectGetHeight(upLable.frame))];
    [upLable addSubview:_begin_timeLable];
    [upLable addSubview:_stageLable];
    [self.contentView addSubview:upLable];
    self.sideLable=[[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(upLable.frame), CGRectGetWidth(self.frame)/8, CGRectGetHeight(self.frame)/4*3)];
    self.scoreLable=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/8, CGRectGetHeight(upLable.frame), CGRectGetWidth(self.frame)/8, CGRectGetHeight(self.frame)/4*3)];
    self.vs_team_logoImageview=[[UIImageView alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/8*2, CGRectGetHeight(upLable.frame)+(CGRectGetHeight(self.frame)/4*3- CGRectGetWidth(self.frame)/8*2)/2, CGRectGetWidth(self.frame)/8*2,  CGRectGetWidth(self.frame)/8*2)];
   
    
    self.vs_team_nameLable=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/8*4, CGRectGetHeight(upLable.frame), CGRectGetWidth(self.frame)/8*2, CGRectGetHeight(self.frame)/4*3)];
    self.is_winLable=[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(self.frame)/8*6, CGRectGetHeight(upLable.frame), CGRectGetWidth(self.frame)/8*2, CGRectGetHeight(self.frame)/4*3)];
    [self.contentView addSubview:_sideLable];
    [self.contentView addSubview:_scoreLable];
    [self.contentView addSubview:_vs_team_logoImageview];
    [self.contentView addSubview:_vs_team_nameLable];
    [self.contentView addSubview:_is_winLable];
    _is_winLable.textAlignment=1;
    _stageLable.textAlignment=1;
    _vs_team_nameLable.numberOfLines=0;
    upLable.layer.borderWidth=1;
    upLable.layer.backgroundColor=[UIColor colorWithRed:0.352 green:0.346 blue:0.533 alpha:1.000].CGColor;
    _begin_timeLable.textAlignment=1;
    _sideLable.textAlignment=1;
    _scoreLable.textAlignment=1;
}
@end
